<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zxx">
<head>
<title>Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<script>
	addEventListener("load", function() {
		setTimeout(hideURLbar, 0);
	}, false);

	function hideURLbar() {
		window.scrollTo(0, 1);
	}
</script>
<!-- Custom Theme files -->
<link href="css/bootstrap.css" type="text/css" rel="stylesheet"
	media="all">
<!-- shop css -->
<link href="css/shop.css" type="text/css" rel="stylesheet" media="all">
<link href="css/style.css" type="text/css" rel="stylesheet" media="all">
<!-- font-awesome icons -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- //Custom Theme files -->
<!-- online-fonts -->
<!-- logo -->
<link href="http://fonts.googleapis.com/css?family=Fredericka+the+Great"
	rel="stylesheet">
<!-- titles -->
<link
	href="http://fonts.googleapis.com/css?family=Merriweather+Sans:300,300i,400,400i,700,700i,800,800i"
	rel="stylesheet">
<!-- body -->
<link
	href="http://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i"
	rel="stylesheet">
<!-- //online-fonts -->
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">

	<div id="home">
		<!-- header -->
		<!-- navbar -->
		<nav class="navbar navbar-default navbar-fixed-top">
		<div class="main-nav">
			<div class="container">

				<div class="navbar-header page-scroll">
					<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target=".navbar-ex1-collapse">
						<span class="sr-only">Chronicle</span> <span class="icon-bar"></span>
						<span class="icon-bar"></span> <span class="icon-bar"></span>
					</button>
					<h1>
						<a class="navbar-brand" href="index.html">Chronicle</a>
					</h1>
				</div>
				<!-- Collect the nav links, forms, and other content for toggling -->
				<div class="collapse navbar-collapse navbar-ex1-collapse nav-right">
					<ul class="nav navbar-nav navbar-left cl-effect-15">
						<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
						<li class="hidden"><a class="page-scroll" href="#page-top"></a>
						</li>
						<li><a href="index.html">Home</a></li>
						<li><a href="about.html">about us</a></li>
						<li class="dropdown"><a href="#"
							class="dropdown-toggle effect-3" data-toggle="dropdown">shop
								<b class="caret"></b>
						</a>
							<ul class="dropdown-menu">
								<li><a href="shop.html">product catalog</a></li>
								<li><a href="single_product.html">single product</a></li>
								<li><a href="checkout.html">checkout</a></li>
								<li><a href="payment.html">Payment</a></li>
							</ul></li>
						<li class="dropdown"><a href="#"
							class="dropdown-toggle effect-3" data-toggle="dropdown">footers
								<b class="caret"></b>
						</a>
							<ul class="dropdown-menu">
								<li><a href="footer.html">Default</a></li>
								<li><a href="footer1.html">variant1</a></li>
								<li><a href="footer2.html">variant2</a></li>
								<li><a href="footer3.html">variant3</a></li>
								<li><a href="footer4.html">variant4</a></li>
							</ul></li>
						<li><a href="contact.html">Contact us</a></li>
						<li><a href="login.html" title="SignIn & SignUp"> 
							<span class="fa fa-user nav-icon" aria-hidden="true"></span>
						</a></li>

					</ul>
					<!-- search-bar -->
					<div class="search-bar-agileits">
						<div class="cd-main-header">
							<ul class="cd-header-buttons">
								<li><a class="cd-search-trigger" href="#cd-search"> <span></span>
								</a></li>
							</ul>
							<!-- cd-header-buttons -->
						</div>
						<div id="cd-search" class="cd-search">
							<form action="#" method="post">
								<input name="Search" type="search"
									placeholder="Type and Hit Enter...">
							</form>
						</div>
					</div>
					<!-- //search-bar ends here -->
					<!-- shopping cart -->
					<div class="cart-mainf">
						<div class="chrcart chrcart2 cart cart box_1">
							<form action="#" method="post" class="last">
								<input type="hidden" name="cmd" value="_cart"> <input
									type="hidden" name="display" value="1">
								<button class="top_chr_cart" type="submit" name="submit"
									value="">
									<i class="fa fa-cart-arrow-down" aria-hidden="true"></i>
								</button>
							</form>
						</div>
					</div>
					<!-- //shopping cart ends here -->
				</div>
				<!-- /.navbar-collapse -->
				<div class="clearfix"></div>
			</div>
			<!-- /.container -->
		</div>
		</nav>
	</div>	
		<div id="loginbox" style="margin-top: 130px;"
					class="mainbox  loginbox">
					<div class="panel panel-info">
						<div class="panel-heading">
							<div class="panel-title">个人信息</div>
						</div>
						<div style="padding-top: 30px" class="panel-body">
							<div style="display: none" id="login-alert" class="alert alert-danger col-sm-12"></div>
							
							<form class="form-horizontal" action="UserServlet?op=update&userId=${user.userId}" method="post">
							<table>
								<tr>
									<td>编号</td>
									<td><input type="text" id="userId" class="form-control" name="userId" value="${user.userId}" disabled></td>
									<td>用户名</td>
									<td><input type="text" id="userName" class="form-control" name="userName" value="${user.userName}" required=""></td>
								</tr>
								<tr>
									<td>密码</td>
									<td><input type="text" id="userPwd" class="form-control" name="userPwd" required="" value="${user.userPwd}"></td>
									<td>身份证号</td>
									<td><input type="text" id="idCard" class="form-control" name="idCard" required="" value="${user.idCard}"></td>
								</tr>
								<tr>
									<td>联系电话</td>
									<td><input type="text" id="tel" class="form-control" name="tel" required="" value="${user.tel}"></td>
									<td>地址</td>
									<td><input type="text" id="addr" class="form-control" name="addr" required="" value="${user.addr}"></td>
								</tr>
								
							</table>
								
								<input type="hidden" name="op" value ="update">
								<div style="margin-top: 10px" class="form-group">
									<!-- Button -->
									<div class="col-sm-12 controls">
										<input type="submit" id="btn-login" class="btn btn-success" name="" id="" href="javascript:updateuserfun('${user.userId}')" value="修改" />
									</div>
								</div>
								
							</form>
						</div>
					</div>
				</div>

	<!-- //home -->
	<!-- js -->
	<script src="js/jquery-2.2.3.min.js"></script>
	<!-- //js -->
	<!--search jQuery-->
	<script src="js/main.js"></script>
	<!--search jQuery-->
	<!-- cart-js -->
	<script src="js/minicart.js"></script>
	<script>
		chr.render();

		chr.cart.on('new_checkout', function(evt) {
			var items, len, i;

			if (this.subtotal() > 0) {
				items = this.items();

				for (i = 0, len = items.length; i < len; i++) {
				}
			}
		});
	</script>
	<!-- //cart-js -->
	<!-- Scrolling Nav JavaScript -->
	<script src="js/scrolling-nav.js"></script>
	<!-- //fixed-scroll-nav-js -->
	<!-- dropdown nav -->
	<script>
		$(document).ready(function() {
			$(".dropdown").hover(function() {
				$('.dropdown-menu', this).stop(true, true).slideDown("fast");
				$(this).toggleClass('open');
			}, function() {
				$('.dropdown-menu', this).stop(true, true).slideUp("fast");
				$(this).toggleClass('open');
			});
		});
	</script>
	<!-- //dropdown nav -->
	<!-- start-smooth-scrolling -->
	<script src="js/move-top.js"></script>
	<script src="js/easing.js"></script>
	<script>
		jQuery(document).ready(function($) {
			$(".scroll").click(function(event) {
				event.preventDefault();

				$('html,body').animate({
					scrollTop : $(this.hash).offset().top
				}, 1000);
			});
		});
	</script>
	<!-- //end-smooth-scrolling -->
	<!-- smooth-scrolling-of-move-up -->
	<script>
		$(document).ready(function() {
			/*
			var defaults = {
			    containerID: 'toTop', // fading element id
			    containerHoverID: 'toTopHover', // fading element hover id
			    scrollSpeed: 1200,
			    easingType: 'linear' 
			};
			 */

			$().UItoTop({
				easingType : 'easeOutQuart'
			});

		});
		
		<!--修改-->
		function updateuserfun(userId){
			location.href = "http://localhost:8080/love_reading_ebook_city/UserServlet?op=update&userId="
				+ userId;
		}
	</script>
	<script src="js/SmoothScroll.min.js"></script>
	<script src="js/numscroller-1.0.js"></script>
	<script src="js/bootstrap.js"></script>
</body>
</html>